/*
*  Copyright 2019-2023 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.mes.domain.vo;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* @description /
* @author mfc
* @date 2025-01-15
**/
@Data
public class MesPageConfigVo implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "页面类型1：一级页面2：非一级")
    private Integer pageType;

    @ApiModelProperty(value = "模版程序")
    private String templatePage;

    @ApiModelProperty(value = "页面链接")
    private String pageLink;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "生成时间")
    private Timestamp createTime;

    @ApiModelProperty(value = "上传模版地址")
    private String templateUrl;

    @ApiModelProperty(value = "页面标题")
    private String pageTitle;

    @ApiModelProperty(value = "目标功能id1")
    private String targetFunctionId1;

    @ApiModelProperty(value = "目标功能id2")
    private String targetFunctionId2;

    @ApiModelProperty(value = "目标功能id3")
    private String targetFunctionId3;

    @ApiModelProperty(value = "目标功能1")
    private String targetFunction1;

    @ApiModelProperty(value = "目标功能2")
    private String targetFunction2;

    @ApiModelProperty(value = "目标功能3")
    private String targetFunction3;

    public void copy(MesPageConfigVo source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
